package world.snowcrystal.ws;

import jakarta.annotation.Nonnull;
import org.redisson.api.RTopic;
import org.redisson.api.listener.StatusListener;
import org.springframework.web.socket.TextMessage;
import org.springframework.web.socket.WebSocketSession;
import org.springframework.web.socket.handler.TextWebSocketHandler;


public class STextWebSocketHandler extends TextWebSocketHandler {

    private RTopic topic ;

    public STextWebSocketHandler(@Nonnull RTopic topic) {
        this.topic = topic;
    }
    private void init(){

    }

    @Override
    public void handleTextMessage(WebSocketSession session,
                                  TextMessage message) throws Exception {
    }


    static class TopicListener implements StatusListener{

        @Override
        public void onSubscribe(String s) {

        }

        @Override
        public void onUnsubscribe(String s) {

        }
    }

}
